package cn.laowen.org.service;

import cn.laowen.basic.vo.ShopVo;
import cn.laowen.org.domain.Shop;
import cn.laowen.basic.service.IBasicService;
import cn.laowen.org.domain.ShopAuditLog;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author laowen
 * @since 2022-06-12
 */
public interface IShopService extends IBasicService<Shop> {
    //1.普通的CRUD通过继承公共接口来实现

    //2.特殊接口需要自己写

    /**
     * 店铺入驻
     * @param shop
     */
    void settlement(Shop shop);

    /**
     * 驳回
     * @param shopAuditLog
     */
    void reject(ShopAuditLog shopAuditLog);

    /**
     * 审核通过
     * @param shopAuditLog
     */
    void pass(ShopAuditLog shopAuditLog);

    /**
     * 不同店铺的审核状态数量
     * @return
     */
    List<ShopVo> queryEcharts();

    /**
     * 批量新增
     * @param shops
     */
    void bulkSave(List<Shop> shops);
}
